function externalInit() {
	// 双击数据卡片显示
	getComponent("headTab_TodoListVO_grid").onRowDblClick = function(rowIndex, row){
		// 单据页面组件事件对象的卡片事件
		billUI.eventHandler.onBoCard();
	}
}

function LinkDownload()
{
};
// 是否结束
LinkDownload.render = function(rowIndex, colIndex, value, header, cell){
		var acomp = $ce("SPAN");
		acomp.id = "bascinfo";
		var dss = getDataset("todolists_TodoListVO");
		// 应付多少钱
    	var apply_mon = dss.getRow(rowIndex).getCellValue(dss.nameToIndex("amount"));
    	// 实际付了多少钱
    	var apply_pay_mon = dss.getRow(rowIndex).getCellValue(dss.nameToIndex("apply_pay_mon"));
    	if(parseFloat(apply_mon).toFixed(2) == parseFloat(apply_pay_mon).toFixed(2)){
    		acomp.innerHTML = "是";
    	}else{
    		acomp.innerHTML = "否";
    	}
		acomp.style.cursor = "hand";
		acomp.style.color = "blue";
		acomp.className = "grid_operatecolumn"; 
	    acomp.style.textAlign = "center"; 
    
        acomp.onclick = function(){
    	var ds = getDataset("todolists_TodoListVO");
    	var pk_tj = ds.getRow(rowIndex).getCellValue(ds.nameToIndex("pk_todolist"));
//    	alert(pk_tj);
    	
//      var url = window.corePath+"/manageui.jsp?ctrl=nc.ui.erm.tj.ClientUIWebCtrl&model=nc.ui.erm.tj.TjQbPageModel&delegator=nc.ui.erm.tj.TjQbDelegator&pageId=E0100404";
    	var url = window.corePath+"/manageui.jsp?ctrl=nc.ui.erm.fktj.ClientUIWebCtrl&model=nc.ui.erm.fktj.FKTjPageModel&delegator=nc.ui.erm.fktj.FKTjDelegator&pageId=E0100405&pk_todolist="+pk_tj;
//			+ "&pk_supplier="+attId;
			
    	var newwidth = document.body.clientWidth - 40;
		var newHeigh = document.body.clientHeight - 40;
	    dialogWindow = showDialog(url, "详细信息", newwidth, newHeigh, "b", true,true);
	};
	cell.appendChild(acomp);    
	cell.style.textAlign = "center"; 	
};

/**
 * 页面参数
 * @return 
 */
function setPageParamMap(key,value){
	if(window.PageParamMap == null)
		window.PageParamMap = new HashMap();
	window.PageParamMap.put(key,value);
}
function getPageParamByKey(key){
	if(window.PageParamMap != null)
		return window.PageParamMap.get(key);
}

function setToObject(key,value){
	window[key] = value;
}
function getFromObject(key){
	return window[key];
}
 
function setCheckManMap(key,value){
	if(window.CheckManMap == null)
		window.CheckManMap = new HashMap();
	window.CheckManMap.put(key,value);
}
function getCheckManByKey(key){
	if(window.CheckManMap != null)
		return window.CheckManMap.get(key);
}
function clearCheckManMap(){
	if(window.CheckManMap != null)
		window.CheckManMap.clear();
}